package com.punai.customer.controller;

import com.punai.common.core.controller.BaseController;
import com.punai.common.core.page.TableDataInfo;
import com.punai.customer.domain.CusImportPackage;
import com.punai.customer.service.ICusImportPackageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 导入数据包Controller
 * 
 * @author ruoyi
 * @date 2023-06-01
 */
@RestController
@RequestMapping("/cus/cusImportPackage")
public class CusImportPackageController extends BaseController
{
    @Autowired
    private ICusImportPackageService cusImportPackageService;

    @GetMapping("/list")
    public TableDataInfo list(CusImportPackage cusImportPackage)
    {
        startPage();
        cusImportPackage.setCompanyId(getCompanyId());
        List<CusImportPackage> list = cusImportPackageService.selectImportPackageList(cusImportPackage);
        return getDataTable(list);
    }
}
